#include <iostream>
using namespace std;
int main(){
	string a,b,c;
	cin>>a>>b;
	if(a.length()<b.length()){
		c=a;a=b;b=c;
	}
	c="0";
	for(int i=0;i<a.length();++i) c+="0";
	int i,j;
	for(i=a.length()-1,j=b.length()-1;j>=0;--i,--j){
		c[i+1]=c[i+1]+a[i]+b[j]-96;
		if(c[i+1]>'9'){
			c[i+1]-=10;
			c[i]++;
		}
	}
	for(int k=i;k>=0;--k){
		c[k+1]=a[k]+c[k+1]-48;
		if(c[k+1]>'9'){
			c[k+1]-=10;
			c[k]++;
		}
	}
	string d="";
	if(c[0]=='0'){
		for(int k=0;k<a.size();++k)
			d=d+c[k+1];
	}
	else d=c;
	cout<<d;
	return 0;
}